package com.ruoyi.emergency.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.emergency.domain.EmergencyDevice;

/**
 * 应急救援物资Mapper接口
 * 
 * @author hcc
 * @date 2024-11-17
 */
public interface EmergencyDeviceMapper extends BaseMapper<EmergencyDevice> //修改
{
    /**
     * 查询应急救援物资
     * 
     * @param id 应急救援物资主键
     * @return 应急救援物资
     */
    public EmergencyDevice selectEmergencyDeviceById(Long id);

    /**
     * 查询应急救援物资列表
     * 
     * @param emergencyDevice 应急救援物资
     * @return 应急救援物资集合
     */
    public List<EmergencyDevice> selectEmergencyDeviceList(EmergencyDevice emergencyDevice);

    /**
     * 新增应急救援物资
     * 
     * @param emergencyDevice 应急救援物资
     * @return 结果
     */
    public int insertEmergencyDevice(EmergencyDevice emergencyDevice);

    /**
     * 修改应急救援物资
     * 
     * @param emergencyDevice 应急救援物资
     * @return 结果
     */
    public int updateEmergencyDevice(EmergencyDevice emergencyDevice);

    /**
     * 删除应急救援物资
     * 
     * @param id 应急救援物资主键
     * @return 结果
     */
    public int deleteEmergencyDeviceById(Long id);

    /**
     * 批量删除应急救援物资
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmergencyDeviceByIds(Long[] ids);
}
